package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 退货明细对象 refund_order_info
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class RefundOrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 退货单ID */
    @Excel(name = "退货单ID")
    private Long returnOrderId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String productCode;

    /** 规格 */
    @Excel(name = "规格")
    private String productSpec;

    /** 单位 */
    @Excel(name = "单位")
    private Long unid;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long num;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Long numRefund;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setReturnOrderId(Long returnOrderId) 
    {
        this.returnOrderId = returnOrderId;
    }

    public Long getReturnOrderId() 
    {
        return returnOrderId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setProductSpec(String productSpec) 
    {
        this.productSpec = productSpec;
    }

    public String getProductSpec() 
    {
        return productSpec;
    }
    public void setUnid(Long unid) 
    {
        this.unid = unid;
    }

    public Long getUnid() 
    {
        return unid;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setNumRefund(Long numRefund) 
    {
        this.numRefund = numRefund;
    }

    public Long getNumRefund() 
    {
        return numRefund;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("returnOrderId", getReturnOrderId())
            .append("productName", getProductName())
            .append("productCode", getProductCode())
            .append("productSpec", getProductSpec())
            .append("unid", getUnid())
            .append("num", getNum())
            .append("price", getPrice())
            .append("numRefund", getNumRefund())
            .append("totalPrice", getTotalPrice())
            .toString();
    }
}
